﻿<UserControl x:Class="Acando.Dynamics.CRM.Silverlight.Library.Controls.LoadingPanelControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    MinWidth="200" MinHeight="110">
    <UserControl.Resources>
        <Style x:Key="GridBorder" TargetType="Border">
            <Setter Property="HorizontalAlignment" Value="Stretch" />
            <Setter Property="VerticalAlignment" Value="Stretch" />
            <Setter Property="Margin" Value="15,15,15,15" />
            <Setter Property="BorderThickness" Value="3" />
            <Setter Property="BorderBrush" Value="#FFEEEEEE" />
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Rectangle Name="loadScreen" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="AliceBlue" Opacity="0.4" Visibility="Visible"/>
        <Border Name="loadContent" Style="{StaticResource GridBorder}" Background="White" CornerRadius="5" Padding="10"  Width="200" Height="80" Visibility="Visible">
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Loading data..." HorizontalAlignment="Left"/>
                <ProgressBar Foreground="#4A9D89" Height="30" IsIndeterminate="True" HorizontalAlignment="Stretch" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
